package com.yyq.Listner;

import com.melloware.jintellitype.HotkeyListener;
import com.yyq.controller.FirController;
import javafx.application.Platform;
import javafx.scene.web.WebHistory;

import java.io.IOException;

/**
 * @author yyq
 * @create 2021-10-07 14:37
 */
public class RunRobotHotKeyListener implements HotkeyListener {

    public void onHotKey(int markCode) {
        System.out.println("快捷键");
        Platform.runLater(new Runnable() {
            @Override
            public void run() {
                try {
                    FirController.sc();
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
        });


    }
}
